import { Module } from "vuex";

import { RootStateTypes, RoutesState } from "@/store/interface/index";
const routes: Module<RoutesState, RootStateTypes> = {
	state() {
		return {
			routes: []
		};
	},
	getters: {
		routes: state => state.routes
	},
	mutations: {
		SET_ROUTE(state: RoutesState, data: any[]) {
			state.routes = data;
		}
	},
	actions: {}
};

export default routes;
